package com.atos.smp.business.impl;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.atos.smp.beans.Process;
import com.atos.smp.beans.ProcessesAVGMapper;
import com.atos.smp.business.ProcessManager;
import com.atos.smp.dao.ProcessDao;

public class ProcessManagerImpl implements ProcessManager,Serializable {

	
	private ProcessDao dao;
	
	public ProcessManagerImpl(ProcessDao dao) {
		super();
		this.dao= dao;
		
	}


	public List<Process> findAllProcess() {
		return dao.findAllProcess();
	}

	
	public List<Process> findProcessByDay(Date date) {
		return dao.findProcessByDay(date);
	}

	public List<Process> findProcessBetweenDates(Date dateDebut, Date DateFin) {
		return dao.findProcessBetweenDates(dateDebut, DateFin);
	}

	
	public List<Process> findProcessByMounth(int year, int mounth) {
		return dao.findProcessByMounth(year, mounth);
	}

	
	public List<Process> findProcessByYear(int year) {
		return dao.findProcessByYear(year);
	}

	
	
	public List<Process> findProcessByName(String nameProcess) {
		return dao.findProcessByName(nameProcess);
	}

	
	
	public List<ProcessesAVGMapper> findCollaboratorProcesses(String das, Date date) {
		return dao.findCollaboratorProcesses(das, date);
		
	}


	public List<ProcessesAVGMapper> findCollaboratorProcesses(String das,
			String nameProcess) {
		
		return dao.findCollaboratorProcesses(das, nameProcess);
		
	}


	public List<Process> findProcesesBetweenMemories(int memoryMin,
			int memoryMax) {
		return dao.findProcesesBetweenMemories(memoryMin, memoryMax);
	}


	@Override
	public List<Process> findCollaboratorProcessByName(String nameProcess,
			String das, Date d) {
		
		return dao.findCollaboratorProcessByName(nameProcess, das, d);
	}

	

	
	
	
}
